const objToArr = obj => {

  let arr=[];
  let arrObj=Object.entries(obj);
  arrObj.forEach(v =>{
    arr.push({ name:v[0], num:v[1] })
  })
  return arr;
}

export default objToArr
